package week3;

public class Example {

    String str = new String("good");

    char[] ch = { 'a', 'b', 'c' };

    String str1 ;

    public static void main(String args[]) {

        Example ex = new Example();
        int count = 3;
// ex.str叫实参
        ex.change(ex.str1, ex.ch, count);

        System.out.print(ex.str1 + " and ");

        System.out.print(ex.ch);

    }

    // str叫形参
    public void change(String str1, char[] ch1, int num) {

        str1 = "test ok";

        ch1[0] = 'g';

    }
}
